﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web.Mvc;
using Downloader.Infrastructure;
using Downloader.Web.Controllers.Queries;
using Downloader.Web.Controllers.ViewModels;

namespace Downloader.Web.Controllers
{
  public  class TopNumberController:Controller
    {
      public IArticleContentQuery ArticleContentQuery { get; set; }
      public ActionResult CategoryTopNumber(int categoryId, int topNumber)
      {
          var result = ArticleContentQuery.GetTopNumber(categoryId, topNumber);
          return PartialView(result);
      }

      public ActionResult CategoryTopNumberImg(int categoryId,int topNumber)
      {
          var list = ArticleContentQuery.GetTopNumberImg(categoryId, topNumber);
          return PartialView(list);
      }

      
    }
  
}
